<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" 
           uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="${pageContext.request.contextPath}/themes/bootstrap/easyui.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/themes/icon.css" rel="stylesheet">
<link href="${pageContext.request.contextPath}/css/bootstrap.min.css" rel="stylesheet">
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/js/customerJS/showdish.js"></script>
<style type="text/css">
body {
	margin-top: 30px;
}
</style>
</head>
<body>
    <div class="rows">
	    <div class="col-md-5">
	    	<a href="getRestaurant" ><h3>查看其它餐厅</h3></a>
	    </div>
	    <div class="col-md-2" style="display: none;">
	    	<button id="uid" value="${currentUser.uid}"></button>
	    </div>
		<div class="col-md-5">
			<form action="${pageContext.request.contextPath}/bookDish?sid=${sid}" class="form-inline" method="post">
				<div class="input-group">
					<input type="text" class="form-control" name="dishname"> <span
						class="input-group-btn">
						<button class="btn btn-default" type="submit">查询</button>
					</span>
				</div>
			</form>
		</div>
	</div>
	<div class="rows col-md-12">
		<table id="sellertable" class="table table-striped">
			<thead>
				<tr>
					<th  style="display: none; width: 50px">did</th>
					<th  style="width: 150px"></th>
					<th  style="width: 150px">菜品信息</th>
					<th  style="width: 250px"></th>
				</tr>
			</thead>
			<tbody id="tbody">
				<c:forEach items="${dishs}" var="dish" varStatus="dh">
					<tr>
						<td id="did" class="did" value="${dish.did}" style="display: none;">${dish.did}</td>
						<td id="dimg">
							<img src="${dish.dtemp1}" alt="..."  height="150px" width="150px">
						</td>
						<td id="dinfo">
							<table>
								<tr><td ><h4><small>菜名：</small>${dish.dname}</h4></td></tr>
								<tr><td><h4><small>价格：</small>${dish.dprice}</h4></td></tr>
								<tr><td><h4><small>数量：</small>${dish.dnum}</h4></td></tr>
							</table>
						</td>
						<td id="add">
							<table>
								<tr><td><button class="addDish1 btn btn-success">添加一份到购物车</button></td>
									<td><p class="warning1" ></p></td>
								</tr>
								<tr><td><button class="addDish2 btn btn-warning">添加二份到购物车</button></td>
									<td><p class="warning2" ></p></td>
								</tr>
								<tr><td><input type="text" class="bnum" style="width: 85px"><button class="addDishn btn btn-info">添加</button></td>
									<td><p class="warning3" ></p></td>
								</tr>
							</table>
						</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<div class="page" align="center">
			<ul class="pagination">${pagedish}
			</ul>
		</div>
	</div>
</body>
</html>